<?php


namespace App\Logic\reservation;


use App\Models\Order;
use App\Models\Patient;

class ZvousCor
{
    //预约数据
    public static function fistShow($userId)
    {
        $data = Patient::where('user_id',$userId)->get()->toArray();
        return $data;
    }
    //订单数据
    public static function orderShowDate($arr)
    {
        $data = Order::where('user_id',$arr)->get()->toArray();

        $res = Order::where('status','0')->where('user_id',11)->get()->toArray();
        return $res;
    }
    //已完成数据
    public static function stocksDate($arr)
    {
        $data = Order::where('user_id',$arr)->get()->toArray();
//        dd($data);
        $res = Order::where('status',4)->where('user_id',11)->get()->toArray();

        return $res;
    }
}
